gsk/vulkan/renderer: Pass appropriate clip region
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Sun, 2 Apr 2023 22:18:24 +0000 (19:18 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 3 Apr 2023 13:59:45 +0000 (10:59 -0300)
commita2a05acc6b82416ed2165d33b351c08fe0b8147b
treea2a3cd8ce4505c496162a886834d284ba267e300
parent840c72d74db5d3b04c3d7d706c8cd092e3963580
gsk/vulkan/renderer: Pass appropriate clip region

This part of the Vulkan renderer is almost exactly equal to the GL
renderer, and the GL renderer already does that since at least
2a38cecd3351. Copy that into the Vulkan renderer.

A nice side effect from this commit is that resizing a window now
actually works again.

Sneak in a trivial cleanup by using a variable to hold the draw
index.
gsk/vulkan/gskvulkanrenderer.c